﻿@using Dentiste.Domain
@{
    ViewBag.Title = "Gestion inami";
    ViewBag.BodyId = "inamiManager";
    Layout = "../_Layout.cshtml";
}

@if (!String.IsNullOrEmpty(Request.QueryString["success"]))
{
    if (Request.QueryString["success"] == "true")
    {
        <div class="alert alert-success">
            Code supprim&eacute; avec <strong>succ&egrave;s</strong> !
        </div>
    }
    else
    {
        <div class="alert alert-error">
            Une <strong>erreur</strong> inconnue est survenue ...
        </div>
    }
}

<h2>Supprimer un code</h2>

<form action="#">
    <fieldset>
        <legend>S&eacute;lectionner un code</legend>
        <select id="Code">
            @foreach (var i in DentisteManager.Instance.SelectAllInami())
            {
                <option value="@i.Code">@i.Code - @i.Label</option>
            }
        </select>
        <button type="submit" class="btn btn-mini delete-btn btn-danger" id="DeleteInami">Supprimer</button>
    </fieldset>
</form>

@section Menu {
    <ul class="nav nav-pills">
        <li><a href="../">Encoder une d&eacute;claration de soin</a></li>
        <li class="dropdown active">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                G&eacute;rer les codes Inami
                <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
                <li><a href="./Add">Ajouter un nouveau code Inami</a></li>
                <li><a href="./Edit">Modifier un code Inami</a></li>
                <li class="active"><a href="javascript:void(0)">Supprimer un code Inami</a></li>
            </ul>
        </li>
    </ul>
}